<template>
  <div class="table-container">
    <el-table :data="tableData" border style="width: 100%">
      <el-table-column prop="deptName" label="单位" min-width="80"  align="center"></el-table-column>
      <el-table-column prop="userName" label="学习人员" min-width="80"  align="center"></el-table-column>
      <el-table-column prop="totalTime" label="学习时间" min-width="80"  align="center"></el-table-column>
      <el-table-column prop="startTime" label="最近学习时间" min-width="80"  align="center">
        <template slot-scope="scope">
          {{ scope.row.startTime.substring(0,scope.row.startTime.indexOf('.')).replace('T',' ') }}
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: "personnelLearningTable",
  props: {
    tableData: {
      type: Array,
      default: () => [],
    },
  },
};
</script>

<style lang="scss" scoped></style>
